/*
 *  Copyright 2005 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.webapp.form.core;

import com.blandware.atleap.webapp.form.BaseForm;

import java.io.Serializable;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>Form bean which allows to select year and month for which to see
 * statistics totals.</p>
 * <p><a href="TotalsDailyForm.java.html"><i>View source</i></a></p>
 *
 * @author Roman Puchkovskiy <a href="mailto:roman.puchkovskiy@blandware.com">
 *         &lt;roman.puchkovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.1 $ $Date: 2006/05/26 08:13:45 $
 * @struts.form name="totalsDailyForm"
 */
public class TotalsDailyForm extends BaseForm implements Serializable {

    /**
     * Number of month in year
     */
    protected Integer month;

    /**
     * Year
     */
    protected Integer year;

    /**
     * Returns month.
     *
     * @return month
     */
    public Integer getMonth() {
        return month;
    }

    /**
     * Sets month.
     *
     * @param month month to set
     */
    public void setMonth(Integer month) {
        this.month = month;
    }

    /**
     * Returns year.
     *
     * @return year
     */
    public Integer getYear() {
        return year;
    }

    /**
     * Sets year.
     *
     * @param year year to set
     */
    public void setYear(Integer year) {
        this.year = year;
    }

	/**
	 * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)
	 */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.month = null;
        this.year = null;
    }
}
